package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeliverClassMapper;
import com.ruoyi.system.domain.DeliverClass;
import com.ruoyi.system.service.IDeliverClassService;
import com.ruoyi.common.core.text.Convert;

/**
 * 巡检记录品类 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
@Service
public class DeliverClassServiceImpl implements IDeliverClassService 
{
	@Autowired
	private DeliverClassMapper deliverClassMapper;

	/**
     * 查询巡检记录品类信息
     * 
     * @param id 巡检记录品类ID
     * @return 巡检记录品类信息
     */
    @Override
	public DeliverClass selectDeliverClassById(Long id)
	{
	    return deliverClassMapper.selectDeliverClassById(id);
	}
	
	/**
     * 查询巡检记录品类列表
     * 
     * @param deliverClass 巡检记录品类信息
     * @return 巡检记录品类集合
     */
	@Override
	public List<DeliverClass> selectDeliverClassList(DeliverClass deliverClass)
	{
	    return deliverClassMapper.selectDeliverClassList(deliverClass);
	}
	
    /**
     * 新增巡检记录品类
     * 
     * @param deliverClass 巡检记录品类信息
     * @return 结果
     */
	@Override
	public int insertDeliverClass(DeliverClass deliverClass)
	{
	    return deliverClassMapper.insertDeliverClass(deliverClass);
	}
	
	/**
     * 修改巡检记录品类
     * 
     * @param deliverClass 巡检记录品类信息
     * @return 结果
     */
	@Override
	public int updateDeliverClass(DeliverClass deliverClass)
	{
	    return deliverClassMapper.updateDeliverClass(deliverClass);
	}

	/**
     * 删除巡检记录品类对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDeliverClassByIds(String ids)
	{
		return deliverClassMapper.deleteDeliverClassByIds(Convert.toStrArray(ids));
	}
	
}
